import NavMaps from './navMaps.js'
import MainMaps from './mainMaps.js'

const routes = [
    {
        path: "/",
        component: () => import("@/layout/MainLayout/mainLayout.jsx"),
        meta: {
            icon: "IconUser",
            title: "用户",
            hidden: false
        },
        children: MainMaps
    },
    {
        path: "/nav",
        component: () => import("@/layout/NavLayout/navLayout.jsx"),
        meta: {
            icon: "IconCloud",
            title: "导航",
            hidden: false
        },
        children: NavMaps
    },
    {
        path: "/login",
        component: () => import("@/layout/Login/login.jsx"),
    },
    {
        path: "detail/:detailId",
        component: () => import("@/views/main/user/detail/detail.jsx"),
    },
    {
        path: "*",
        component: () => import("@/layout/NotFound/notFound.jsx"),
    }
]

export default routes